package com.wzk.travelspringboot.controller;

import com.wzk.travelspringboot.dto.BlogCommentDTO;
import com.wzk.travelspringboot.dto.Result;
import com.wzk.travelspringboot.service.BlogCommentService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/18 10:01
 */
@Slf4j
@RestController
@RequestMapping("/blog/comment")
@RequiredArgsConstructor
@Validated
public class BlogCommentController {

    private final BlogCommentService blogCommentService;

    @PutMapping
    public Result comment(@RequestBody BlogCommentDTO dto){
        return blogCommentService.comment(dto);
    }


}
